package com.syq.dao;

import com.syq.entity.Cart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wgy
 * @version V1.0
 * @project gp12_xiaomi
 * @package com.qf.dao
 * @description: ${TODO}
 * @date 2022/6/23 16:42
 */
@Mapper

public interface CartDao {
    void insert(Cart cart);

    Cart selectByUidAndPid(@Param("id") Integer id, @Param("pid") int pid);

    void update(Cart cart);

    List<Cart> selectByUid(Integer id);

    void delete(Integer uid, int pid);

    void deleteByUid(Integer uid);
}
